Skip to content

Enable Virtual disk as storage mode in PIM #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 22, 2025
Merged

Enable Virtual disk as storage mode in PIM #12

merged 10 commits into from
Jul 22, 2025

Conversation

manju956
Copy link
Collaborator

No description provided.

@manju956 manju956 self-assigned this Jul 18, 2025
@manju956 manju956 added the enhancement New feature or request label Jul 18, 2025
@manju956 manju956 changed the title Enable Virtual disk support as storage mode in PIM Enable Virtual disk as storage mode in PIM Jul 18, 2025
Signed-off-by: Manjunath-A-C <[email protected]>

if not storage_attached:
if not storage_attached or not vdisk_attached:
vios_storage_list = vios_operation.get_vios_with_physical_storage(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for vdisk also we need to check physical storage vios list?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes because we create virtual disk from physical storage with sufficient space.

cli/vios/vios.py Outdated
logger.info(
f"Removing SCSI mapping for physical disk '{phys_disk}'")
command_util.remove_scsi_mappings(
config, cookies, sys_uuid, partition_uuid, vios_uuid, vios, phys_disk)
storage_cleaned = True
# Check if attached disk is virtual disk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this func has become too long, please see you can refactor it to sub funcs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Member

@dharaneeshvrd dharaneeshvrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just minor nit on log statements where var are surrounded with single quotes in few places and not in few places, can you fix this before merging?

@dharaneeshvrd
Copy link
Member

Pls don't forget to squash the commits before merge

@manju956
Copy link
Collaborator Author

just minor nit on log statements where var are surrounded with single quotes in few places and not in few places, can you fix this before merging?

sure

Signed-off-by: Manjunath-A-C <[email protected]>
@manju956 manju956 merged commit f6a88b2 into main Jul 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants